Phantom reference

A phantom reference is one of the strengths or levels of 'non strong' reference defined in the Java programming language; the others being weak and soft.[1]

An object is phantomly referenced after it has been finalized, but before its allocated memory has been reclaimed.

See also

References

  1. ^ "Package java.lang.ref". Java™ Platform, Standard Edition 7 API Specification. Oracle. http://docs.oracle.com/javase/7/docs/api/java/lang/ref/package-summary.html. Retrieved 12 December 2011.